
#pragma once

#include <iostream>

#include "CameraProto.pb.h"


class protoAgent{
public:
    protoAgent(){}
    ~protoAgent(){}

    static std::string serialize(CameraInfo cameraProto){
        std::string msg;
        cameraProto.SerializeToString(&msg);
        return msg ;
    }
    static CameraInfo deserialize(std::string &msg){
        CameraInfo info;
        info.ParseFromString(msg);
        return info ;
    }
};